char slowestKey(int* releaseTimes, int releaseTimesSize, char * keysPressed){
    char ans = keysPressed[0];
    int maxTime = releaseTimes[0];
    for (int i = 1; i < releaseTimesSize; i++) {
        char key = keysPressed[i];
        int time = releaseTimes[i] - releaseTimes[i - 1];
        if (time > maxTime || (time == maxTime && key > ans)) {
            ans = key;
            maxTime = time;
        }
    }
    return ans;
}